package com.zxkj.domain2.mapper;

import com.zxkj.domain2.entity.SciDocAdd;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Administrator on 2017/7/12.
 */
public interface SciDocAddRepository extends JpaRepository<SciDocAdd, String> {

    @Query(value = "SELECT * FROM sci_doc_add limit ?1", nativeQuery = true)
    List<SciDocAdd> getDocList(int limit);

}
